package com.learning.spring.optimize.event;

import org.springframework.context.ApplicationEvent;

/**
 * ClassName: EventBean
 * Description: 自定义事件类
 * Date: 2018/8/8 17:24 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class EventBean extends ApplicationEvent {

    private String msg;

    public EventBean(Object source, String msg) {
        super(source);
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}